package com.fz.util;

import java.util.regex.Pattern;

/**
 * Created by Z-C-Y on 2018-03-04.
 * 用来实现登录账户必须输11位的数据
 *
 */
public class CheckNumber {
    public static boolean checkNumberWithRegex(long num){
        String numStr = String.valueOf(num);
        String pattern = "^1[\\d]{10}";
        boolean isMatch = Pattern.matches(pattern, numStr);
        return isMatch;
    }

}
